package com.myteam.fugaocrm.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.myteam.fugaocrm.modle.FgCustomerCompany;
import com.myteam.fugaocrm.sqldb.mapper.FgCompanyMapper;
import com.myteam.fugaocrm.sqldb.mapper.FgCustomerCompanyMapper;

@Service
public class CustomerCompanyServiceImpl implements BaseService {

	@Resource protected FgCustomerCompanyMapper fgCustomerCompanyMapper;
	
	public List<FgCustomerCompany> all() {
		return fgCustomerCompanyMapper.all();
	}
	
	public void deleteOne(Integer companyId) {
		fgCustomerCompanyMapper.deleteOne(companyId);
	}
	
	public void insert(Map<String, Object> params) {
		fgCustomerCompanyMapper.insert(params);
	}
	
	public void update(Map<String, Object> params) {
		fgCustomerCompanyMapper.update(params);
	}
	
}
